import 'package:flutter/material.dart';

void main() => runApp(MyApp());

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    // TODO: implement build
    return MaterialApp(
        home: Scaffold(
          appBar: AppBar(title: Text('FlutterDemo')),
          body: ImageContent(),
     ));
  }
}
class ImageContent extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    // TODO: implement build
    return Center(
      child: Container(       
        child:Image.asset('assets/images/a.jpeg',
          fit: BoxFit.cover,
        ),
        height: 100,
        width: 100,
        
      )
    );
  }
}
